<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>博客管理后台</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<jsp:include page="common/head.jsp" />
<link href="admin/css/blog.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="admin/js/editor/kindeditor.js"></script>
<script type="text/javascript" src="admin/js/editor/lang/zh_CN.js"></script>
	<script type="text/javascript" src="admin/js/blog.js"></script>
<script>
	KindEditor.ready(function(K) {
		window.editor = K.create('#editor');
	});
</script>
</head>
<body>
	<div id="wrapper">
		<div id="wrapper-bgtop">
			<jsp:include page="common/header.jsp"></jsp:include>
			<div id="page">
				<div id="content">
					<form id="addBlogForm" method="post"
						action="admin/blogAction!addBlog.action?action=add">
						<p>
							标题： <select id="blogEntity.source">
								<option value="0">请选择...</option>
								<option value="1">原创</option>
								<option value="2">转载</option>
								<option value="3">翻译</option>
							</select>&nbsp;&nbsp;<input type="text" name="blogEntity.title"
								placeholder="请填写标题" size="50" />
						</p>
						<p>
							<br />
							<textarea id="editor" name="blogEntity.content" placeholder="在此填写内容"
								style="width: 500px; height: 300px;"></textarea>
						</p>
						<p>
							标签： <input type="text" name="blogEntity.blogTagsStr" placeholder="多标签请用者空格隔开" size="70" />
						</p>

						<h3>文章属性</h3>
						<table width="526" border="0">
							<tr>
								<td width="92" align="right">博文分类：</td>
								<td width="424"><select name="blogEntity.blogTypeEntity.id" id="blogType">
										<option value="0">请选择...&nbsp;&nbsp;&nbsp;&nbsp;</option>
										<s:iterator value="#request.blogTypeList" var="bt">
											<option value='<s:property value="#bt.id"/>'><s:property value="#bt.name"/></option>
										</s:iterator>
								</select></td>
							</tr>
							<tr>
								<td align="right">版权声明：</td>
								<td><select name="blogEntity.copyright">
										<option value="0">请添加...&nbsp;&nbsp;&nbsp;&nbsp;</option>
										<option value="1">欢迎转载</option>
										<option value="2">转载需注明出处</option>
										<option value="3">转载需作者授权</option>
										<option value="4">谢绝转载</option>
								</select></td>
							</tr>
							<tr>
								<td align="right">设置：</td>
								<td>&nbsp; <input type="radio" checked="checked" name="blogEntity.isShow" value="1">
									&nbsp;公开&nbsp;&nbsp; <input type="radio" name="blogEntity.isShow" value="0">
									&nbsp;隐藏（隐藏只显示在后台“管理博文”中）
								</td>
							</tr>
						</table>
						<p/>
						<h3>
							文章摘要<i>(博客首页默认显示的内容 选填)</i>
						</h3>
						<textarea rows="5" cols="75" name="blogEntity.summary"></textarea>
						<h3>高级选项</h3>
						<p>
							<input type="radio" name="blogEntity.allowReply" value="1" checked="checked" />允许评论
							<input type="radio" name="blogEntity.allowReply" value="0" />禁止评论 <input
								type="checkbox" name="blogEntity.isTop" value="1" />置顶<br>

						</p>
						<table width="200" border="0" align="center">
							<tr>
								<td><a class="btn02" id="btnAdd">立即发布</a></td>
								<td><a class="btn03" id="btnAddDraft">保存草稿</a></td>
							</tr>
						</table>
						<p>
							<br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</p>
					</form>
				</div>
				<!-- end #content -->
				<jsp:include page="common/sidebar.html"></jsp:include>
				<!-- end #sidebar -->
				<div style="clear: both;">&nbsp;</div>
			</div>
			<!-- end #page -->
		</div>
	</div>
	<jsp:include page="../common/footer.html"></jsp:include>
	<!-- end #footer -->
</body>
</html>